package com.rjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rjy.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
//3
public interface StudentMapper extends BaseMapper<Student> {
    @Insert(" INSERT INTO student ( name, age, sex, studentclass, tel, address,email ) VALUES" +
             " ( #{student.name}, #{student.age}, #{student.sex}," +
            " #{student.studentclass}, #{student.tel}, #{student.address} ,#{student.email})")
    void insertStudent(@Param("student")Student student);
}
